package com.tang.auth.application.convert;

import com.tang.auth.entity.AuthUserDTO;
import com.tang.auth.entity.AuthUserStatusDTO;
import com.tang.auth.domain.entity.AuthUserBO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * 用户dto转换器
 *
 * @author Tang
 * @date 2024/2/15 8:51
 **/
@Mapper
public interface AuthUserDTOConverter {

    AuthUserDTOConverter INSTANCE = Mappers.getMapper(AuthUserDTOConverter.class);

    AuthUserBO convertDTOToBO(AuthUserDTO authUserDTO);

    AuthUserBO convertStatusDTOToBO(AuthUserStatusDTO authUserStatusDTO);

    AuthUserDTO convertBOToDTO(AuthUserBO authUserBO);

}
